package cn.ryanpenn.javafx.samples.mist.sample.rx;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * Created on 2015-10-30.
 *
 * @author Misty
 */
public class App extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
        new RxView().getViewObs().subscribe(v -> {
            System.out.println("subs view");
            primaryStage.setScene(new Scene(v));
            primaryStage.show();
        });
    }

    public static void main(String[] args) {
        launch(args);
    }
}
